const configColumns = reactive([
  {
    title: "销售成本",
    width: 100,
    key: "pre_sales_volume_daily",
    children: [
      { title: "销售数量", field: "sku_count", width: 100 },
      { title: "采购成本", field: "purchase_cost", width: 100 },
      { title: "头程成本", field: "fba_freight", width: 100 },
      { title: "成本汇总", field: "cost_summary", width: 100 },
      { title: "销售额", field: "sales_amount", width: 100 },
      { title: "天数 x", field: "xxxxx86", width: 100 },
    ],
  },

  {
    title: "全流程存货",
    width: 100,
    key: "full_process_inventory_analysis",
    children: [
      { title: "采购在途", field: "procurement_in_transit", width: 100 },
      { title: "本地仓在库", field: "local_warehouse_inventory", width: 100 },
      { title: "FBA在途", field: "fba_in_transit", width: 100 },
      { title: "海外仓在途", field: "ow_in_transit", width: 100 },
      { title: "海外中转仓在途", field: "otw_in_transit", width: 130 },
      { title: "WFS在途", field: "wfs_in_transit", width: 100 },
      { title: "FBA在库", field: "fba_inventory", width: 100 },
      { title: "海外仓在库", field: "ow_inventory", width: 100 },
      { title: "海外中转仓在库", field: "otw_inventory", width: 130 },
      { title: "WFS在库", field: "wfs_inventory", width: 100 },
      { title: "全流程", field: "full_process_inventory", width: 100 },
    ],
  },

  {
    title: "全流程存货金额",
    width: 100,
    key: "full_process_inventory_analysis",
    children: [
      { title: "采购在途", field: "procurement_in_transit_amount", width: 100 },
      { title: "本地仓在库", field: "local_warehouse_inventory_amount", width: 100 },
      { title: "FBA在途", field: "fba_in_transit_amount", width: 100 },
      { title: "海外仓在途", field: "ow_in_transit_amount", width: 100 },
      { title: "海外中转仓在途", field: "otw_in_transit_amount", width: 130 },
      { title: "WFS在途", field: "wfs_in_transit_amount", width: 100 },
      { title: "FBA在库", field: "fba_inventory_amount", width: 100 },
      { title: "海外仓在库", field: "ow_inventory_amount", width: 100 },
      { title: "海外中转仓在库", field: "otw_inventory_amount", width: 130 },
      { title: "WFS在库", field: "wfs_inventory_amount", width: 100 },
      { title: "全流程", field: "full_process_inventory_amount", width: 100 },
      { title: "库存VS销售 x", field: "xxxxxxx0", width: 100 },
    ],
  },

  {
    title: "存货占比",
    width: 100,
    key: "full_process_inventory_analysis",
    children: [
      { title: "采购在途", field: "procurement_in_transit_ratio", width: 100 },
      { title: "本地仓在库", field: "local_warehouse_inventory_ratio", width: 100 },
      { title: "FBA在途", field: "fba_in_transit_ratio", width: 100 },
      { title: "海外仓在途", field: "ow_ratio", width: 100 },
      { title: "海外中转仓在途", field: "otw_ratio", width: 130 },
      { title: "WFS在途", field: "wfs_in_transit_ratio", width: 100 },
      { title: "FBA在库", field: "fba_inventory_ratio", width: 100 },
      { title: "海外仓在库", field: "ow_inventory_ratio", width: 100 },
      { title: "海外中转仓在库", field: "otw_inventory_ratio", width: 130 },
      { title: "WFS在库", field: "wfs_inventory_ratio", width: 100 },
      { title: "全流程", field: "full_process_inventory_ratio", width: 100 },
    ],
  },
  {
    title: "库存周转天数",
    width: 100,
    key: "turnover_days",
    children: [
      { title: "采购在途", field: "procurement_in_transit_turnover_days", width: 100 },
      { title: "本地仓在库", field: "local_in_transit_turnover_days", width: 100 },
      { title: "FBA在途", field: "fba_in_transit_turnover_days", width: 100 },
      { title: "海外仓在途", field: "ow_in_transit_turnover_days", width: 100 },
      { title: "海外中转仓在途", field: "otw_in_transit_turnover_days", width: 130 },
      { title: "WFS在途", field: "wfs_in_transit_turnover_days", width: 100 },

      { title: "FBA在库", field: "fba_turnover_days", width: 100 },
      { title: "海外仓在库", field: "ow_turnover_days", width: 100 },
      { title: "海外中转仓在库", field: "otw_turnover_days", width: 130 },
      { title: "WFS在库", field: "wfs_turnover_days", width: 100 },
      { title: "全流程", field: "full_process_turnover_days", width: 100 },
    ],
  },

  {
    title: "上期销货成本",
    width: 100,
    key: "pre_sales_volume_daily",
    children: [
      { title: "采购成本", field: "purchase_cost", width: 100 },
      { title: "头程成本", field: "fba_freight", width: 100 },
      { title: "成本汇总", field: "cost_summary", width: 100 },
    ],
  },

  {
    title: "销货成本对比",
    width: 100,
    key: "pre_sales_volume_daily_qoq",
    children: [
      { title: "采购成本", field: "purchase_cost_qoq", width: 100 },
      { title: "头程成本", field: "fba_freight_qoq", width: 100 },
      { title: "成本汇总", field: "cost_summary_qoq", width: 100 },
    ],
  },

  {
    title: "上期存货在数",
    width: 100,
    key: "pre_full_process_inventory_analysis",
    children: [
      { title: "采购在途", field: "procurement_in_transit", width: 100 },
      { title: "本地仓在库", field: "local_warehouse_inventory", width: 100 },
      { title: "FBA在途", field: "fba_in_transit", width: 100 },
      { title: "海外仓在途", field: "ow_in_transit", width: 100 },
      { title: "海外中转仓在途", field: "otw_in_transit", width: 130 },
      { title: "WFS在途", field: "wfs_in_transit", width: 100 },
      { title: "FBA在库", field: "fba_inventory", width: 100 },
      { title: "海外仓在库", field: "ow_inventory", width: 100 },
      { title: "海外中转仓在库", field: "otw_inventory", width: 130 },
      { title: "WFS在库", field: "wfs_inventory", width: 100 },
      { title: "全流程", field: "full_process_inventory", width: 100 },
    ],
  },
  {

    title: "上期库存数环比",
    key: "pre_full_process_inventory_analysis_qoq",
    width: 100,
    children: [
      { title: "采购在途", field: "procurement_in_transit_qoq", width: 100 },
      { title: "本地仓在库", field: "local_warehouse_inventory_qoq", width: 100 },
      { title: "FBA在途", field: "fba_in_transit_qoq", width: 100 },
      { title: "海外仓在途", field: "ow_in_transit_qoq", width: 100 },
      { title: "海外中转仓在途", field: "otw_in_transit_qoq", width: 130 },
      { title: "WFS在途", field: "wfs_in_transit_qoq", width: 100 },
      { title: "FBA在库", field: "fba_inventory_qoq", width: 100 },
      { title: "海外仓在库", field: "ow_inventory_qoq", width: 100 },
      { title: "海外中转仓在库", field: "otw_inventory_qoq", width: 130 },
      { title: "WFS在库", field: "wfs_inventory_qoq", width: 100 },
      { title: "全流程", field: "full_process_inventory_qoq", width: 100 },
    ],
  },
  {

    title: "上期在库金额",
    width: 100,
    key: "pre_full_process_inventory_analysis",
    children: [
      { title: "采购在途", field: "procurement_in_transit_amount", width: 100 },
      { title: "本地仓在库", field: "local_warehouse_inventory_amount", width: 100 },
      { title: "FBA在途", field: "fba_in_transit_amount", width: 100 },
      { title: "海外仓在途", field: "ow_in_transit_amount", width: 100 },
      { title: "海外中转仓在途", field: "otw_in_transit_amount", width: 130 },
      { title: "WFS在途", field: "wfs_in_transit_amount", width: 100 },
      { title: "FBA在库", field: "fba_inventory_amount", width: 100 },
      { title: "海外仓在库", field: "ow_inventory_amount", width: 100 },
      { title: "海外中转仓在库", field: "otw_inventory_amount", width: 130 },
      { title: "WFS在库", field: "wfs_inventory_amount", width: 100 },
      { title: "全流程", field: "full_process_inventory_amount", width: 100 },
    ],
  },
  {
    title: "上期在库金额环比",
    width: 100,
    key: "pre_full_process_inventory_analysis_qoq",
    children: [
      { title: "采购在途", field: "procurement_in_transit_amount_qoq", width: 100 },
      { title: "本地仓在库", field: "local_warehouse_inventory_amount_qoq", width: 100 },
      { title: "FBA在途", field: "fba_in_transit_amount_qoq", width: 100 },
      { title: "海外仓在途", field: "ow_in_transit_amount_qoq", width: 100 },
      { title: "海外中转仓在途", field: "otw_in_transit_amount_qoq", width: 130 },
      { title: "WFS在途", field: "wfs_in_transit_amount_qoq", width: 100 },
      { title: "FBA在库", field: "fba_inventory_amount_qoq", width: 100 },
      { title: "海外仓在库", field: "ow_inventory_amount_qoq", width: 100 },
      { title: "海外中转仓在库", field: "otw_inventory_amount_qoq", width: 130 },
      { title: "WFS在库", field: "wfs_inventory_amount_qoq", width: 100 },
      { title: "全流程", field: "full_process_inventory_amount_qoq", width: 100 },
    ],
  },
  {
    title: "上期库存周转天数",
    width: 100,
    key: "pre_turnover_days",
    children: [
      { title: "采购在途", field: "procurement_in_transit_turnoverDays", width: 100 },
      { title: "本地仓在库", field: "local_in_transit_turnoverDays", width: 100 },
      { title: "FBA在途", field: "fba_in_transit_turnover_days", width: 100 },
      { title: "海外仓在途", field: "ow_in_transit_turnover_days", width: 100 },
      { title: "海外中转仓在途", field: "otw_in_transit_turnover_days", width: 130 },
      { title: "WFS在途", field: "wfs_in_transit_turnover_days", width: 100 },
      { title: "FBA在库", field: "fba_turnover_days", width: 100 },
      { title: "海外仓在库", field: "ow_turnover_days", width: 100 },
      { title: "海外中转仓在库", field: "otw_turnover_days", width: 130 },
      { title: "WFS在库", field: "wfs_turnover_days", width: 100 },
      { title: "全流程", field: "full_process_turnover_days", width: 100 },
    ],
  },

  {
    title: "上期库存周转天数环比",
    width: 100,
    key: "pre_turnover_days_qoq",
    children: [
      { title: "采购在途 x", field: "xxxxx1", width: 100 },
      { title: "本地仓在库 x", field: "xxxxx", width: 100 },
      { title: "FBA在途", field: "fba_in_transit_turnover_days_qoq", width: 100 },
      { title: "海外仓在途", field: "ow_in_transit_turnover_days_qoq", width: 100 },
      { title: "海外中转仓在途", field: "otw_in_transit_turnover_days_qoq", width: 130 },
      { title: "WFS在途", field: "wfs_in_transit_turnover_days_qoq", width: 100 },
      // { title: "FBA在库", field: "value2", width: 100 },
      // { title: "海外仓在库", field: "value2", width: 100 },
      // { title: "海外中转仓在库", field: "value2", width: 130 },
      // { title: "WFS在库", field: "value2", width: 100 },
      // { title: "全流程", field: "value2", width: 100 },
    ],
  },
])
configColumns.forEach((item) => {
  if (item.key) {
    item.children.forEach((items) => {
      items.field = `full_process_data.${item.key}.${items.field}`
    })
  }
})
console.log("configColumns")
console.log(configColumns)
export { configColumns }
